﻿using System;
using System.Collections.Generic;
using System.Text;
using stv_keybinds;

namespace stv_keybinds.Server_Browser
{
    public class Player : NotifyPropertyChangedItem
    {
        #region Properties
        public String Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
                OnPropertyChanged("Name");
            }
        }

        public Int32 Score
        {
            get
            {
                return score;
            }

            set
            {
                score = value;
                OnPropertyChanged("Score");
            }
        }

        public String Time
        {
            get
            {
                return time;
            }

            set
            {
                time = value;
                OnPropertyChanged("Time");
            }
        }

        public String Class { get { return @class; } set { @class = value; } }

        public String Team { get { return team; } set { team = value; } }

        public int Number { get { return number; } set { number = value; } }

        public Boolean StillConnected { get {return stillConnected; } set { stillConnected = value;} }

        public int IconIndex { get { return iconIndex; } set { iconIndex = value; } }

        #endregion

        private String name;
        private Int32 score;
        private String time;
        private String @class;
        private String team;
        private Int32 number;
        private Boolean stillConnected;
        private int iconIndex = -1;

    }
}
